<?php
namespace app\common\validate;

use think\Validate;

class Customer extends Validate{
    protected $rule = [
        'name'=>'require',
        'mobile'=>'require|regex:1\d{10}|unique:customer,mobile',
        'invite_id'=>'require'
    ];

    protected $message = [
        'name.require'=>'请填写姓名',
        'mobile.require'=>'请填写手机号码',
        'mobile.regex'=>'手机号码不正确',
        'mobile.unique'=>'该号码已经报名',
        'invite_id.require'=>'请重新扫码进入',
    ];

}
